<?php
class AudioPlayer extends Podcast {
	private $counter = -1;
	public function getPlayer($tag, $filename) {
		$this->counter++;

		$id = "player".$this->counter;
		$file = ROOT."feed/".urlencode("$tag - player")."/$filename";

		$player = "<div class=\"player\"><div lang=\"$file\" id=\"$id\">";
		$player .= '<img alt="Audioplayer" src="'.ROOT.'app/images/player.png" onclick="replaceAudioPlayer(\''.$id.'\')" style="cursor: pointer; border: 0;">';
		$player .= "</div></div>";

		return $player;
	}
}

?>
